<?php 
//require_once "authenticate.php";
ob_start();
	session_start();
	//require_once "checkLogin.php";
	require_once("lib/classQuanTri.php");	
		
	require_once("lib/class.loaisp.php");
	require_once("lib/class.mau.php");
	require_once("lib/class.size.php");
	require_once("lib/class.sanpham.php");
	require_once("lib/class.kieudang.php");
	require_once("lib/class.user.php");
	require_once("lib/class.chatlieu.php");
	require_once("lib/class.donhang.php");
	require_once("lib/class.khachhang.php");
	
	$chat = new chatlieu;
	$lsp = new loaisp;
	$qt = new quantri;
	$mau = new mau;
	$kieu = new kieudang;
	$size = new size;
	$sp = new sanpham;
	$u = new users;
	$dh = new donhang;
	$kh = new khachhang;

	$com='';
    if(isset($_GET['com']))
    {
   	    $com = $_GET['com'];
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Quản trị</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="css/system.css" rel="stylesheet" type="text/css" />
<link href="css/menu.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/jquery.ui.all.css"/>
<link rel="stylesheet" type="text/css" href="css/jquery.ui.datepicker.css"/>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
</head>

<body>    
<div id="wrapper" style="background-color:#FFF;min-height:600px;margin-top:20px;border-radius:  10px 10px 10px 10px;">
	<div id="header" style="clear:both;background-color:#FFF">
    	<div style="float:left;width:30%"></div>
        <div style="float:left;width:40%;"><h1 style="margin-top:20px;margin-left:50px">QUẢN TRỊ WEBSITE</h1></div>
        <div id="chao" style="width:30%;float:right;color:#F3C">
        	<span>Chào Admin <?php echo $_SESSION['kt_HoTen'] ?>
            </span>
             <div id="thoat"><a href="thoat.php" style="color:#00C; ">Thoát</a> </div>
           </div>
    </div>
    <div style="clear:both"></div>
    <div id="thanhmenu" style="margin-bottom:20px"><?php include 'blocks/layout/menu.php';?></div>
    <div id="content">
     	<?php		   	
		if ($com==""){
                    include "blocks/sp/sp_add.php";	
                }else{
                    $arrCom = explode('_',$com);
                    include "blocks/".$arrCom[0]."/".$com.".php";
                }	
		
		?>       
    </div>
</div>
</body>
</html>